package com.tansun.easycare.rule.common.rulebasebean;

public class RuleItem {

    /**
     * 规则名
     */
    private String ruleName;
    /**规则编号*/
    //private String ruleCode;
    /**
     * 排序
     */
    private int sort = 0;
    /**
     * 优先级
     */
    private int salience;
    /**
     * 规则注释
     */
    private String comment;
    /**额外日志*/
    //private String[] logs;
    /**
     * out(enabled true)
     */
    private String enabled;
    /**
     * 开始日期 out:(date-effective "24-Nov-2015")
     */
    private String dateEffective;
    /**
     * 结束日期 format: out:(date-expires "20-Nov-2015")
     */
    private String dateExpires;

    /**
     * 互斥组标记
     */
    private String activationGroup;
    /**
     * 规则内容组织类型 formatObj : 由DWhen 和DThen 组成 simpleTxt ： 文本组成
     */
    private String txtType = "formatObj";

    private DWhen dWhen = new DWhen();
    private DThen dThen = new DThen();

    private int addlog = 1; //0 = 不添加日志，1 = 添加日志
    
	/**
	 * 规则输出结果信息
	 */
	private String ruleResultInfo;
    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public int getSort() {
        return sort;
    }

    public int getSalience() {
        return salience;
    }

    public void setSalience(int salience) {
        this.salience = salience;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public String getDateEffective() {
        return dateEffective;
    }

    public void setDateEffective(String dateEffective) {
        this.dateEffective = dateEffective;
    }

    public String getDateExpires() {
        return dateExpires;
    }

    public void setDateExpires(String dateExpires) {
        this.dateExpires = dateExpires;
    }

    public DWhen getdWhen() {
        return dWhen;
    }

    public void setdWhen(DWhen dWhen) {
        this.dWhen = dWhen;
    }

    public DThen getdThen() {
        return dThen;
    }

    public void setdThen(DThen dThen) {
        this.dThen = dThen;
    }

    public String getActivationGroup() {
        return activationGroup;
    }

    public void setActivationGroup(String activationGroup) {
        this.activationGroup = activationGroup;
    }

    public String getTxtType() {
        return txtType;
    }

    public void setTxtType(String txtType) {
        this.txtType = txtType;
    }

	public int getAddlog() {
		return addlog;
	}

	public void setAddlog(int addlog) {
		this.addlog = addlog;
	}
	public String getRuleResultInfo() {
		return ruleResultInfo;
	}

	public void setRuleResultInfo(String ruleResultInfo) {
		this.ruleResultInfo = ruleResultInfo;
	}

}
